// IKafkaMessage.cs
using System.Collections.Generic;

namespace Beauty.Net.Kafka
{
    /// <summary>
    /// Kafka 消息接口
    /// </summary>
    public interface IKafkaMessage
    {
        /// <summary>
        /// 消息键
        /// </summary>
        string Key { get; set; }

        /// <summary>
        /// 消息值
        /// </summary>
        string Value { get; set; }

        /// <summary>
        /// 消息头
        /// </summary>
        Dictionary<string, object> Headers { get; set; }

        /// <summary>
        /// 分区
        /// </summary>
        int? Partition { get; set; }

        /// <summary>
        /// 时间戳
        /// </summary>
        long? Timestamp { get; set; }
    }
}